//
//  AppDelegate.m
//  FSiOSClient
//
//  Created by purlible on 2024/8/22.
//

#import "AppDelegate.h"
#import "FSHomeViewController.h"
#import "FSBootViewController.h"


@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.backgroundColor = [UIColor whiteColor];
    
    FSBootViewController *vc = [[FSBootViewController alloc] init];
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
    
    [self.window setRootViewController:nav];
    
    [self.window makeKeyAndVisible];
    
#ifdef DEBUG
    
    [DDLog addLogger:DDOSLogger.sharedInstance];
    
    DDFileLogger *fileLogger = [[DDFileLogger alloc] init];
    // 刷新频率为24小时
    fileLogger.rollingFrequency = 60 * 60 * 24;
    // 最多同事包含的文件数量
    fileLogger.logFileManager.maximumNumberOfLogFiles = 7;
    [DDLog addLogger:fileLogger];
    
#endif
    
    return YES;
}


@end
